/**
 * Created by mac on 2017/7/7.
 */
import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Dimensions,
    ScrollView,
    Image,
    ActivityIndicator
} from 'react-native';
let width = Dimensions.get('window').width;
export default class SectionBar extends Component{

    render(){

        return(
            <View style={{ backgroundColor:'#eeeeee',height:30,width:width,flexDirection:'row',alignItems:'center',alignSelf:'flex-start'}}>
                {this.props.view}
                <View style={{backgroundColor:'#66b219',width:15,height:10}}></View>
                <Text style={{height:30,left:8,lineHeight:30,fontSize:12}}>{this.props.title}</Text>
            </View>
        )
    }
}